package com.example.xzs.admin.userlogin.pojo.entiy;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("user")
public class User implements Serializable {
    @TableId(type= IdType.AUTO)
    private Long id;
    private String username;
    private String password;
    private String avatar;
    private String phone;
    private String realName;
    private String sex;
    private String  email;
    private String  description;
    private Integer  enable;
    private Integer admin;
    private String lastLoginIp;
    private Integer  loginCount;
    private Date   gmtLastLogin;

    /**
     * 数据创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    /**
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime   gmtModified;
    private Integer gradeId;



}
